/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class ElectronicSignage {
    static categoryCode = '010110004';

    static categoryName = '电子标牌';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return ElectronicSignage.categoryCode;
    }

    get categoryName() {
        return ElectronicSignage.categoryName;
    }

    getBrightness(params) {
        return command({
            method: 'getBrightness',
            methodId: 'pgh0Ii0W',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getImage(params) {
        return command({
            method: 'getImage',
            methodId: 'pDrwnywR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pGoxXOx1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getText(params) {
        return command({
            method: 'getText',
            methodId: 'p1vZljZo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setBrightness(params) {
        return command({
            method: 'setBrightness',
            methodId: 'pZguffRk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setImage(params) {
        return command({
            method: 'setImage',
            methodId: 'pUPQyFnq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3JPyx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setText(params) {
        return command({
            method: 'setText',
            methodId: 'ppArvwXb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default ElectronicSignage;
